package de.fh.ka.as.car.routing.map;

import android.graphics.Point;

/**
 * Removes a Point of the Map
 */
public class DeleteCommand implements MapCommand {

	private Point point;

	@Override
	public boolean execute(MapProvider provider) {
		if (provider.getMap().containsKey(point)) {
			provider.getMap().remove(point);
			return true;
		} else
			return false;
	}
}